package com.zhangkang.stock.stocklib.view

import android.content.Context
import android.graphics.Bitmap
import android.graphics.Color
import androidx.core.content.ContextCompat
import androidx.core.graphics.drawable.toBitmap
import com.zhangkang.stock.stocklib.R
import com.zhangkang.stock.stocklib.tools.dp2px
import com.zhangkang.stock.stocklib.tools.sp2px

/**
 * @author : Android-张康
 * created on: 2023/5/10 11:30
 * description:
 */
class IndexNameConfig(context: Context) {

    val height = 14.dp2px(context)

    val width = 67.dp2px(context)

    val radius = 2.dp2px(context)

    val backgroundColor = Color.parseColor("#F2F2F2")

    val strokeColor = Color.parseColor("#E5E8ED")

    val marginTop = 1.dp2px(context)

    val strokeWidth = 0.65F.dp2px(context)

    val textSize = 12.sp2px(context)

    val textColor = Color.parseColor("#333333")

    val textMarginStart = 6.dp2px(context)

    val arrowDropDownBitmap: Bitmap? =
        ContextCompat.getDrawable(context, R.drawable.btn_price_more)?.toBitmap()

    val arrowDropDownMarginStart = 56.dp2px(context)

}